package com.example.wlt.personnel_manegement_system.Manager.Org;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.wlt.personnel_manegement_system.R;

/**
 * Created by WLT on 2016/4/29.
 */
public class Fragment_Project extends Fragment {
    private TextView tv_editdep; //部门简介
    private TextView tv_listmem;//成员名单
    private TextView tv_applicatindep;//部门申请审核

    @Override
    public View onCreateView(LayoutInflater inflater,  ViewGroup container,  Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.organization_project, container, false);
        tv_editdep = (TextView) view.findViewById(R.id.tv_org_editdep);
        tv_listmem=(TextView)view.findViewById(R.id.tv_org_listmem);
        tv_applicatindep=(TextView)view.findViewById(R.id.tv_org_applicatedep);

        //进入项目部部门简介页面
        tv_editdep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(getActivity().getApplicationContext(),Pro_editdep.class);
                startActivity(Intent);
            }
        });
        //进入项目部成员名单页面
        tv_listmem.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(getActivity().getApplicationContext(),Pro_member.class);
                startActivity(Intent);
            }
        });
        //进入项目部部门申请审核页面
        tv_applicatindep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(getActivity().getApplicationContext(),Pro_audit.class);
                startActivity(Intent);
            }
        });

        return view;
    }
}
